package com.zxj.friend.domain.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 竞赛 VO
 *
 * @author zxj2022
 * @date 2024/12/29
 */
@Getter
@Setter
@Schema(name = "ExamVO", description = "竞赛VO")
public class ExamVO {

    /** 竞赛 ID */
    @Schema(name = "examId", description = "竞赛ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;

    /** 标题 */
    @Schema(name = "title", description = "竞赛标题")
    private String title;

    /** 开始时间 */
    @Schema(name = "startTime", description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /** 结束时间 */
    @Schema(name = "endTime", description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /** 是否已经报名 true: 已经报名  false 未报名*/
    @Schema(name = "enter", description = "是否已经报名 true: 已经报名  false 未报名")
    private boolean enter = false;

}
